# 加载数据
import yaml

user_info = [
    ["小优", "2025", "清华大学"],
    ["王慧敏", "2026", "家里蹲大学"],
    ["李庆", "2022", "北京大学"]
]
with open("data.yaml","w",encoding="utf-8") as f:
    s_info=yaml.safe_dump(user_info,allow_unicode=True)
    f.write(s_info)
    print(s_info)